package org.xiyu.yee.pjwto.trading;

import net.minecraft.world.item.ItemStack;

/**
 * 表示一个猪灵交易的数据类
 */
public class PiglinTrade {
    private final ItemStack costA;
    private final ItemStack costB;
    private final ItemStack result;
    private final int maxUses;
    private final int experience;
    
    public PiglinTrade(ItemStack costA, ItemStack costB, ItemStack result, int maxUses, int experience) {
        this.costA = costA;
        this.costB = costB;
        this.result = result;
        this.maxUses = maxUses;
        this.experience = experience;
    }
    
    public ItemStack getCostA() {
        return costA.copy();
    }
    
    public ItemStack getCostB() {
        return costB.copy();
    }
    
    public ItemStack getResult() {
        return result.copy();
    }
    
    public int getMaxUses() {
        return maxUses;
    }
    
    public int getExperience() {
        return experience;
    }
}
